package cn.dust.design.pattern.behavioral.mediator;

/**
 * @Author: dust
 * @Date: 2019/11/28 17:59
 */
public class Test {

    public static void main(String[] args) {
        User dust=new User("dust");

        User tom=new User("tom");

        dust.sendMessage("How are you?");
        tom.sendMessage("I'm fine ,thanks,and you?");
        dust.sendMessage("I'm OK");
    }

}
